package edu.nf.aiexam.common.exception;


import lombok.Getter;


@Getter
public class GlobalException extends RuntimeException {
    /**
     * 异常错误码
     */
    private final Integer errorCode;

    public GlobalException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}